import os
import sys
import django

base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(base_dir)

os.environ.setdefault("DJANGO_SETTINGS_MODULE","demos.settings")
django.setup()

from api import models

# models.UserInfo.objects.create(telephone=18316330991,nickname="郑健",avatar="aads",token="asddas")

# for i in range(20):
#     models.UserInfo.objects.create(
#         telephone='18316330992',
#         nickname='小明-{0}'.format(i),
#         avatar='https://zj-1323324849.cos.ap-nanjing.myqcloud.com/2x.jpg'
#
#     )
